<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>编辑</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>

    <style>
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .checkbox-inline {line-height: 5px;}
        .radio-inline.i-checks {
            margin-top: 5px!important;
        }
        .form-group .form-inline {
            display: block!important;
        }
    </style>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content" id="app" v-cloak>

        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <form id="Form" autocomplete="off">
                    <div style="padding: 0">
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-6 form-group">
                                <label class="form-inline">开始领取时间 <span style="color: red">【时间为空则不限时】</span></label>
                                <input class="form-control" name="beginTime"
                                       onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"
                                       placeholder="请选择开始领取时间" style="cursor: pointer">
                            </div>
                            <div class="col-sm-6 form-group">
                                <label class="form-inline">结束领取时间 <span style="color: red">【时间为空则不限时】</span></label>
                                <input class="form-control" name="endTime"
                                       onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"
                                       placeholder="请选择结束领取时间" style="cursor: pointer">
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">发布数量</label>
                                <input class="form-control" type="number" min="0" name="pushNum"
                                       value="0" placeholder="请输入发布数量">
                            </div>
                            <input type="hidden" name="alreadyLedNum" value="0">
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">是否限量</label>
                                <select class="form-control" name="isLimit">
                                    <option value="0" selected>不限量</option>
                                    <option value="1" >限量</option>
                                </select>
                            </div>
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">最多可领取数量</label>
                                <input class="form-control" type="number" min="0" name="maxReceive"
                                       value="0" placeholder="请输入最多可领取数量">
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">是否有效</label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="status" value="1" checked> 正常
                                </label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="status" value="0" > 失效
                                </label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="status" value="2" > 未开启
                                </label>
                            </div>
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">是否开启用户手动获取</label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="isOpenManualGet" value="1" checked> 是
                                </label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="isOpenManualGet" value="0" > 否
                                </label>
                            </div>
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">是否允许转赠</label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="isGive" value="1" checked> 是
                                </label>
                                <label class="radio-inline i-checks">
                                    <input type="radio" name="isGive" value="0" > 否
                                </label>
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">是否为全场券</label>
                                <select class="form-control" name="isFullCourt" id="isFullCourt" @change="selectIsFull">
                                    <option value="1" selected>是</option>
                                    <option value="0" >否</option>
                                </select>
                            </div>
                            <div class="col-sm-4 form-group" v-if="isFullCourt == 0">
                                <label class="form-inline">使用场景</label>
                                <select class="form-control" name="useScene" id="useScene">
                                    <option v-for="(item,index) in selects" :value="item.keyS" >---{{item.keyValue}}---</option>
                                </select>
                            </div>
                            <input type="hidden" name="useSceneRelation" id="useSceneRelation" value="0">
                            <div class="col-sm-4 form-group" v-if="isFullCourt == 0">
                                <label class="form-inline">使用场景关联</label>
                                <input class="form-control" type="text" @click="toSelectRelation"
                                       id="useSceneRelationName" style="cursor: pointer" value="点击选择关联" >
                            </div>
                        </div>
                        <div class="col-sm-12 form-group">
                            <div class="col-sm-4 form-group">
                                <label class="form-inline">是否开启积分兑换</label>
                                <select class="form-control" name="isOpenExchange" id="isOpenExchange" @change="selectIsOpen">
                                    <option value="1" selected>是</option>
                                    <option value="0" >否</option>
                                </select>
                            </div>
                            <div class="col-sm-4 form-group" v-if="isOpenExchange == 1">
                                <label class="form-inline">积分兑换值</label>
                                <input class="form-control" type="number" min="0" name="exchangeValue"
                                       value="0" placeholder="请输入积分兑换值">
                            </div>
                        </div>
                    </div>

                    <div style="text-align: center">
                        <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 80px;">关 闭</a>
                        <a class="btn btn-primary" style="width: 80px;" @click="push">保存</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script src="../../../../../../public-tools/pc/plugins/My97DatePicker/WdatePicker.js"></script>
    <script src="../../../../js/coupon-manage/coupon/coupon/push.js"></script>
</body>
</html>
